// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_MENU_TYPE
// * CreateDate    : 2014-06-05 18:30:40
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:40
// * LastChanger   : 2014-06-05 18:30:40
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class SecMenuTypeEntity : EntityBase
    {
        public SecMenuTypeTable TableSchema
        {
            get
            {
                return SecMenuTypeTable.Current;
            }
		}
		
		public SecMenuTypeEntity()
        {

        }
		
		public SecMenuTypeEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.MenuTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_CODE"]));
			this.MenuTypeName = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_NAME"]));
			this.IsDelete = Convert.ToString(CommonFunctions.ToObject(dr["IS_DELETE"]));
        }
		
		public SecMenuTypeEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.MenuTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_CODE"]));
			this.MenuTypeName = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_NAME"]));
			this.IsDelete = Convert.ToString(CommonFunctions.ToObject(dr["IS_DELETE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecMenuTypeTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string MenuTypeCode
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_MENU_TYPE_CODE)); }
            set { SetData(SecMenuTypeTable.C_MENU_TYPE_CODE, value); }
        }
		
        [DataMember]
        public string MenuTypeName
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_MENU_TYPE_NAME)); }
            set { SetData(SecMenuTypeTable.C_MENU_TYPE_NAME, value); }
        }
		
        [DataMember]
        public string IsDelete
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_IS_DELETE)); }
            set { SetData(SecMenuTypeTable.C_IS_DELETE, value); }
        }
		
		#endregion
	}
	
	
}	

